<?php
// +----------------------------------------------------------------------
// | ThinkBLOG (Build on ThinkPHP)
// +----------------------------------------------------------------------
// | @link ( http://www.yurnero.net )
// +----------------------------------------------------------------------
// | @licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | @author nicholas <nicholasinlove@126.com>
// +----------------------------------------------------------------------
// | $Id: SessionsModel.class.php 114 2012-04-13 01:51:48Z nicholasinlove1986@gmail.com $
// +----------------------------------------------------------------------


class SessionsModel extends Model {
	
	/**
	 * 
	 * 字段信息
	 * 
	 * @var Model
	 */
	protected $fields = array (
		0 => 'sid', 
		1 => 'ip1', 
		2 => 'ip2', 
		3 => 'ip3', 
		4 => 'ip4', 
		5 => 'userid', 
		6 => 'username', 
		7 => 'roleid', 
		8 => 'group', 
		9 => 'module', 
		10 => 'action', 
		11 => 'lastactivity', 
		12 => 'lastolupdate', 
		'_autoinc' => false, 
		'_pk' => 'sid', 
		'_type' => array (
			'sid' => 'char(6)', 
			'ip1' => 'tinyint(3) unsigned', 
			'ip2' => 'tinyint(3) unsigned', 
			'ip3' => 'tinyint(3) unsigned', 
			'ip4' => 'tinyint(3) unsigned', 
			'userid' => 'mediumint(8) unsigned', 
			'username' => 'char(15)', 
			'roleid' => 'smallint(6) unsigned', 
			'group' => 'char(20)', 
			'module' => 'char(20)', 
			'action' => 'char(20)', 
			'lastactivity' => 'int(10) unsigned', 
			'lastolupdate' => 'int(10) unsigned' 
		) 
	);
}